package com.dp.nebula.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateHelper {
	public static String DATE_FORMAT_PATTERN_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND="yyyy-MM-dd HH:mm:ss";
	
	public static String format(Date date,String Format){
		SimpleDateFormat dateFormat = new SimpleDateFormat(Format);
		return dateFormat.format(date);
		//return "tochar(aaa,bb)";
	}
}
